package com.ezjie.ielts.constant;

import com.ezjie.ielts.module_listen.ListenExamActivity;
import com.ezjie.ielts.module_read.ReadClassifyActivity;
import com.ezjie.ielts.module_read.ReadExamActivity;

/**
 * 静态变量
 * 
 * @author renyangyang
 *
 */
public class Constants {
	public static final int SUCCESS_CODE = 200;
	public final static int MIN_SPACE = 200; // 最小存储空间(MB)
	public final static String LUSER = "loginUser";

	/**
	 * 
	 * 阅读题型分类 标识(group_cate)
	 */
	public static class ReadClassifyType {
		public static final String MATCHING = "MATCHING"; // 配对题
		public static final String TRUE_OR_FALSE = "TRUE_OR_FALSE"; // 是非题
		public static final String SUMMARY = "SUMMARY"; // 摘要题
		public static final String SENTENCE_COMPLETION = "SENTENCE_COMPLETION";// 完成句子题
		public static final String SHORT_ANSWER = "SHORT_ANSWER";// 简答题
		public static final String CHART_COMPLETION = "CHART_COMPLETION"; // 图表题
		public static final String CHOICE = "CHOICE";// 选择题
		public static final String LIST_OF_HEADINGS = "LIST_OF_HEADINGS";// 标题对应题

	}

	/**
	 * 阅读题型分类 （group_type） "1" => "单选", "2" => "多选题","3"=>
	 * '带选项图表题','4'=>'配对题','5'=>'标题对应题','6'=>'是非题','7'=>'摘要题',
	 * '8'=>'简答题','9'=>'完成句子题','10'=>'不带选项卡图表题','11'=>'表格题',
	 * '12'=>'带图选择题','13'=>'带选项摘要题',"14"=>'带选项的完成句子题 '
	 */
	public static class ReadClassifyGroupType {
		public static final String SINGLE_CHOICE = "1";// 单选题
		public static final String MULTIPLE_CHOICE = "2";// 多选题
		public static final String TAB_CHART_COMPLETION = "3"; // 带选项卡图表题
		public static final String MATCHING = "4"; // 配对题
		public static final String LIST_OF_HEADINGS = "5";// 标题对应题
		public static final String TRUE_OR_FALSE = "6"; // 是非题
		public static final String SUMMARY = "7"; // 摘要题
		public static final String SHORT_ANSWER = "8";// 简答题
		public static final String SENTENCE_COMPLETION = "9";// 完成句子题
		public static final String NO_TAB_CHART_COMPLETION = "10"; // 不带选项卡图表题
		public static final String CHART_COMPLETION = "11"; // 图表题(表格)
		public static final String CHOICE_PICTURE = "12"; // 带图选择题
		public static final String TAB_SUMMARY = "13"; // 带选项摘要题
		public static final String TAB_SENTENCE_COMPLETION = "14"; // 带选项的完成句子题
	}

	// 登录
	public static final String LOGIN_ACTION = "com.ezjie.ielts.LOGIN_ACTION";
	// 退出登录
	public static final String LOGOUT_ACTION = "com.ezjie.ielts.LOGOUT_ACTION";
	// 回到首页
	public static final String GO_MAIN_PAGE_ACTION = "com.ezjie.ielts.GO_MAIN_PAGE_ACTION";

	/*** 　start 阅读的一些参数 ***/

	public static final String PARAMS_TYPE = "type";
	public static final String PARAMS_CATEGORY_ID = "category_id";
	public static final String PARAMS_QUESTIONS = "questions";
	public static final String PARAMS_POSITION = "position";
	public static final String READ_TYPE = "type";
	public static final String READ_ID = "category_id";
	public static final String READ_FROM = "from"; // 来自哪个activity
	public static final String READ_FROM_VALUE = ReadClassifyActivity.class.getSimpleName();
	public static final String READ_FROM_VALUE2 = ReadExamActivity.class.getSimpleName();
	public static final String READ_FROM_VALUE1 = ListenExamActivity.class.getSimpleName();
	public static final String READ_FROM_VALUE3 = "ReadErrorActivity";
	public static final String READ_SETDATA_ORIGIN = "origin";
	public static final String READ_SETDATA_PRACTICE = "practice";
	public static final String READ_EDIT_LINE = "{#}";
	public static final String READ_EDIT_MERGE = "{##}";
	public static final String READ_IMG_URL = "img_url";
	public static final String READ_START_TIME = "start_time";
	public static final String READ_POSITION = "position";
	public static final String READ_TOTAL = "total";
	public static final String PARAMS_QUESTION_TYPE = "question_type";
	public static final String READ_ERROR_TYPE = "error_type";
	public static final String READ_ERROR_TYPE_VALUE = "reading";
	public static final String READ_INSTANT_REPORT_ANSWER = "intant_report_answer";
	public static final String READ_ANLYSIS = "read_anlysis";
	public static final String READ_ANLYSIS_TYPE = "answer_anlysis";
	public static final String READ_INSTANT_REPORT_SUBMIT_ANSWER = "submit_answer";
	public static final String READ_INSTANT_REPORT_BUNDLE = "answer_bundle";
	public static final String READ_SETDATA_SINGLE_ORIGIN = "single_origin";
	public static final String READ_ORIGIN_INDEX = "origin_index";
	public static final String READ_ERROR_BUNDLE = "error_question_bundle";

	/*** 　start 阅读的一些参数 ***/

	/**** 注册 ****/
	public static final int REQUEST_REG = 12345;// 注册的Request code
	public static final int REQUEST_FORGET_PASS = 22345;// 忘记密码的Request code

	/** 广播action **/
	public static final String REFRESH_CLASSFIY_DATA_ACTION = "com.ezjie.ielts.REFRESH_CLASSFIY_ACTION";

}
